import {requestDelete, requestGet, requestPost, requestPut} from "@/api";

export const getCompilerList = () => {
    return requestGet('/api/sm/compilers')
}

export const getCompilerById = (id:string) => {
    return requestGet('/api/sm/compiler/'+id)
}


export const saveCompiler = (data?:any) => {
    return requestPost("/api/sm/compiler",data)
}

export const updateCompiler = (data?:any) => {
    return requestPut("/api/sm/compiler",data)
}
export const deleteCompiler = (id:string) => {
    return requestDelete("/api/sm/compiler/"+id)
}

